#ifndef CSTUDENT_H
#define CSTUDENT_H

#include <QtSql>

class CStudent
{
public:
    CStudent(QString dbname,QString tbname);
    bool addStudent(int id,QString name,QString gender);
    bool createTable(QString sql);


private:
    int m_id;
    QString m_name;
    QString  m_gender;
    QString m_tbname;
    QSqlDatabase m_db;

};

#endif // CSTUDENT_H
